package com.fengr.basic;

import lombok.Data;
import org.springframework.web.bind.annotation.PostMapping;

@Data
public class AjaxResult {
    private boolean success = true;
    private String message;

    public static AjaxResult me() {
        return new AjaxResult();
    }


    public AjaxResult getMessage(String message) {
        this.success = false;
        return this;
    }
}